#!/bin/sh

# Makefile
#
#
# Created by Shuqiao Guo on 12/20/11.
# Copyright 2011 Thothe. All rights reserved.


OBJS = index.o
CC = g++
CFLAGS = -I../include
LFLAGS = -o
SUBDIRS = access storage

all : $(OBJS) $(SUBDIRS)
	$(CC) $(LFLAGS) index.exe *.o

$(SUBDIRS):
	$(MAKE) -C $@

index.o : index.cpp
	$(CC) $(CFLAGS) -c index.cpp

.PHONY: clean $(SUBDIRS)

clean :
	rm $(OBJS) 